<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">

	<p:dialog id="chiNhanhDialogId" header="Chi tiết bàn" widgetVar="chiNhanhDialog" showEffect="fade" hideEffect="fade"
		resizable="false" modal="true" appendToBody="true" maximizable="true">
		<h:form id="chiNhanhDetailFormId">
			<h:panelGrid id="chiNhanhPanelGridId" columns="2" cellpadding="4">
				<f:facet name="header">
				</f:facet>

				<h:outputText value="Mã số*:" />
				<p:inputText value="#{chiNhanhView.editedEntity.code}" style="font-weight:bold" />

				<h:outputText value="Tên*:" />
				<p:inputText value="#{chiNhanhView.editedEntity.name}" style="font-weight:bold" />
				<h:outputText value="Địa chỉ:" />
				<p:inputText value="#{chiNhanhView.editedEntity.address}" style="font-weight:bold" />
				<h:outputText value="Số đtdđ:" />
				<p:inputText value="#{chiNhanhView.editedEntity.phone}" style="font-weight:bold" />
				<h:outputText value="Số đt cố định:" />
				<p:inputText value="#{chiNhanhView.editedEntity.fixPhone}" style="font-weight:bold" />

				<f:facet name="footer">
					<p:commandButton icon="ui-icon-disk" value="Save" action="#{chiNhanhView.saveOrUpdate}" process="@form"
						update=":chiNhanhListFormId:chiNhanhDataTableId, @form"
						oncomplete="if (!args.validationFailed) chiNhanhDialog.hide()">
					</p:commandButton>
					<p:commandButton icon="ui-icon-cancel" value="Cancel" immediate="true" onclick="chiNhanhDialog.hide()" />
				</f:facet>
			</h:panelGrid>
		</h:form>
	</p:dialog>

</ui:composition>